package aula_try_catch;

public class CalculadoraSimples {
	public int somar(int a, int b){
        return a+b;
    }
    
    public int subtrair(int a, int b){
        return a-b;
    }
    
    public int multiplicar(int a, int b){
        return a*b;
    }
    
    public int dividir(int a, int b)throws ErroCalcSimples{
		if(b==0)
			throw new ErroCalcSimples(a, b);
    	return a/b;
    	
    }

}
